 {extends file="profile/layout.tpl"}
 {block name="title"}##NA_RESEARCH##{/block}
{block name="script"}
  $(document).ready(function () {
	$("#frm4").validate({
            rules: {
                research_oriented_vi: {
                    required: true
                }
            },
            messages: {

                research_oriented_vi: {
                    required: '##EM_RESEARCH_ORIENTED_IS_REQUIRED##'
                }
            }
			});
  });
{/block}
{block name="name"}
    ##NG_RESEARCH##
{/block}
{block name="content"}
   

    
    <div class="clear">
        </div>	
	<div class="message {$type_message|default:'error'}" style="display:{$is_display|default:'none'};">{$message|default:''}</div>
	<form id="frm4" name="frm4" action="4.php" method="post" enctype="multipart/form-data">
	
	<input type="hidden" name="id" id="id" value="{$id}"/>
	<div class="box round first center">
		<h2>1.##NG_RESEARCH_ORIENTED##</h2>
		
		<table class="data display center" cellpadding="10" cellspacing="10" 
        align="left" border="2">
			<tbody>
			<tr>
				<td style="vertical-align:middle">##NG_VIETNAMESE##</td>
				<td>
					<textarea rows="4" cols="50" id="research_oriented_vi" name="research_oriented_vi" value="{$research_oriented_vi|default:''}">{$research_oriented_vi|default:''}</textarea>(*)
				</td>
			</tr>
			<tr>
				<td style="vertical-align:middle">##NG_ENGLISH##</td>
				<td>
					<textarea rows="4" cols="50" id="research_oriented_en" name="research_oriented_en" value="{$research_oriented_en|default:''}">{$research_oriented_en|default:''}</textarea>
				</td>
			</tr>
                        <tr>
                            	<td style="vertical-align:middle">##NG_IDEA_UPLOAD##</td>
                                <td>
                                      {if isset($idea_uploaded)}
					
					<a href="download.php?url={$idea_uploaded}">{$idea_uploaded}</a><br>
					{/if}
					<input id="idea_upload" type="file" maxlength="255" size="40" name="idea_upload"/>
                                </td>
                        </tr>
			</tbody>
		</table>
	</div>
	<div class="clear">
        </div>	
	
    <div class="box round first center">
        <h2>2.##NG_PROJECT## <a href="4_1.php" style>(##NG_UPDATE##)</a></h2>
        <table class="data display datatable" >
            <thead>
                <tr>
                    <td bgcolor="#FFFFFF"><div align="center"><strong>
                         #
                    </strong></div></td>
                    <td bgcolor="#FFFFFF"><strong>
                        ##NG_PROJECT_NAME##
                    </strong></td>
                    <td bgcolor="#FFFFFF"><strong>
                        ##NG_SPONSOR##
                    </strong></td>
                    <td bgcolor="#FFFFFF"><strong>
                        ##NG_TIME##
                    </strong></td>
                    <td bgcolor="#FFFFFF"><strong>
                        ##NG_ROLE##
                    </strong></td>
                    
                </tr>
            </thead>
            
            <tbody>
            {foreach $projects|default:array() as $i}
                        
                {if $i@index is div by 2}
                    <tr class="even">
                {else}
                    <tr class="odd">
                {/if}
                    <td><div align="center">
                            {$i@index + 1}
                    </div></td>
                    <td>
                        {$i.TenDeTai_vi}
                    </td>
                    <td>
                        {$i.TenToChucTaiTro_vi}
                    </td>
                    <td>
                        {$i.ThoiGianBatDau|date_format:"%d-%m-%Y"} - {$i.ThoiGianKetThuc|date_format:"%d-%m-%Y"}
                    </td>
                    <td>
                        {$i.VaiTro_vi}
                    </td>
                  
                </tr>            
                    
               
            {/foreach}
            </tbody> 
        </table>
    </div>
	<div class="clear">
        </div>
	
	
	
	<div class="box round first center">
        <h2>3.##NG_RESEARCH_RESULT## <a href="4_2.php">(##NG_UPDATE##)</a></h2>
		
		<table class="data display datatable" >
            <thead>
                <tr>
                    <td bgcolor="#FFFFFF"><div align="center"><strong>
                         #
                    </strong></div></td>
                    <td bgcolor="#FFFFFF"><strong>
                        ##NG_PRODUCT_NAME##
                    </strong></td>
                    <td bgcolor="#FFFFFF"><strong>
                        ##NG_AUTHORS##
                    </strong></td>
                    <td bgcolor="#FFFFFF"><strong>
                        ##NG_PUBLISHER##
                    </strong></td>
                    <td bgcolor="#FFFFFF"><strong>
                        ##NG_ISSN##
                    </strong></td>
					<td bgcolor="#FFFFFF"><strong>
                        ##NG_UPLOAD_EVIDENCE##
                    </strong></td>
					<td bgcolor="#FFFFFF"><strong>
                        ##NG_NOTE##
                    </strong></td>
                  
                </tr>
            </thead>
            
            <tbody>
            {foreach $results|default:array() as $i}
                        
                {if $i@index is div by 2}
                    <tr class="even">
                {else}
                    <tr class="odd">
                {/if}
                    <td><div align="center">
                            {$i@index + 1}
                    </div></td>
                    <td>
                        {$i.TenSanPham}
                    </td>
                    <td>
                        {$i.TenTacGia}
                    </td>
                    <td>
                        {$i.TenTapChi}
                    </td>
                    <td>
                        {$i.ISSN}
                    </td>
					<td>
						<a href="download.php?url={$i.MinhChung}">{$i.MinhChung}</a>
                    </td>
					<td>
                        {$i.GhiChu}
                    </td>
                  
                </tr>            
                    
               
            {/foreach}
				
            </tbody> 
        </table>
	</div>
	<div class="clear">
        </div>
		
	
		<table class="data display datatable" cellpadding="10" cellspacing="10" 
        align="left" border="2">
			<tr>
                <td colspan="2">
                    <div style="float:left; height:auto">
                        <input type="submit" value="##NG_SAVE##" name="save" class="btn btn-blue"/>
                    </div>
                    <div style="float:right; height:auto">
                        <input type="button" value="##NG_NEXT##" name="next" onclick="window.location.href='5.php'" class="btn btn-blue" />
                    </div>
                </td>
            </tr>
		</table>
	<div class="clear">
        </div>
	</form>	

   

            

        
{/block}
